package com.test.eventbus;

import com.google.common.eventbus.Subscribe;

public class EventListener {  
	   
    public int lastMessage = 0;  
   
    @Subscribe  
    public void listen(OurTestEvent event) {  
        lastMessage = event.getMessage();  
        System.out.println(lastMessage);
    }  
   
    public int getLastMessage() {  
        return lastMessage;  
    }  
}  